package com.wsj;

import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

/**
 * Hello world!
 */

public class App {

  public static void main(String[] args) {
    ConfigurableListableBeanFactory bf = new XmlBeanFactory(new ClassPathResource("bean.xml"));
    BeanFactoryPostProcessor bfpp = (BeanFactoryPostProcessor) bf.getBean("bfpp");
    bfpp.postProcessBeanFactory(bf);
    System.out.println(bf.getBean("bfpp"));
    System.out.println("hello world!");
  }
}
